package com.pig_and_dog_congener;

public class dog {
    public boolean equals(Object obj){
        return obj instanceof pig || obj instanceof dog;
    }
}